﻿
@page "/AntDesignModal"

@inject AntDesign.ModalService _modalService

<Button Text="Modal1" OnClick="Modal1Click" />

<AntDesign.Modal Title="BasicModal"
                 @bind-Visible="@_visible">
    <p>Some contents...</p>
    <p>Some contents...</p>
    <p>Some contents...</p>
</AntDesign.Modal>

@code {

    bool _visible = false;
    public async Task Modal1Click()
    {
        _visible = true;
    }
}
